home *** CD-ROM | disk | FTP | other *** search
/ Animation How-To / Animation How-to CD.iso / PLY / CHAPTER3 / FAKE / FAKE2.PI < prev    next >
Text File  |  1994-01-01  |  3KB  |  154 lines

  1. // FAKE2.PI - Image mapped endless tunnel with mirrors
  2. //  Some of the harsh edges of the walls were hidden with grey 
  3. //  cylinders in this view.
  4.  
  5. //  You need three targa files as image maps:
  6. //   The Floor - Floor.tga
  7. //   The Walls- Walls.tga
  8. //   The ceiling - Ceiling.tga
  9.  
  10. start_frame 0
  11. end_frame 9
  12. total_frames 10
  13.  
  14. outfile "fake2"
  15.  
  16. include "\ply\colors.inc"
  17.  
  18. viewpoint {
  19.    from <0,6,-22.5+frame*5>
  20.    at <0,6,2000>
  21.    up <0,1,0>
  22.    angle 30
  23.    resolution 320,200
  24.    aspect 1.433
  25.    }
  26.  
  27. background <0.4,0.4,0.4>
  28.  
  29. define disc_image1 image("ceiling.tga")
  30. define sandy
  31.    texture {
  32.       special surface {
  33.          color planar_imagemap(disc_image1, P, 1)
  34.          ambient 0.2
  35.          diffuse 0.8
  36.       }
  37.       translate <-0.5, 0, -0.5>
  38.       scale <4,4,4>
  39.       rotate <0,180,0>
  40.    }
  41.  
  42. define disc_image2 image("floor.tga")
  43. define cement
  44.    texture {
  45.       special surface {
  46.          color planar_imagemap(disc_image2, P, 1)
  47.          ambient 0.2
  48.          diffuse 0.8
  49.       }
  50.       translate <-0.5, 0, -0.5>
  51.       scale<4,4,4>
  52.       rotate <0,180,0>
  53.    }
  54.  
  55. define disc_image3 image("walls.tga")
  56. define stucco
  57.    texture {
  58.       special surface {
  59.          color planar_imagemap(disc_image3, P, 1)
  60.          ambient 0.2
  61.          diffuse 0.8
  62.       }
  63.       translate <-0.5, 0, -0.5>
  64.       rotate <0,0,90>
  65.       scale <6,6,6>
  66.    }
  67.  
  68. define reflector
  69. texture {
  70.    surface {
  71.       ambient white, 0
  72.       diffuse white, 0
  73.       specular 0
  74.       reflection white, 1
  75.       }
  76.    }
  77.  
  78. define matte
  79. surface {
  80.    ambient 0.3
  81.    diffuse 0.8
  82.    }
  83.  
  84. define dull_grey texture { matte { color <0.4,0.4,0.4> } }
  85.  
  86. // wall's
  87. define wall
  88.    object {
  89.       object { polygon 4, <-4, 9,-6>, <-4,-1, -6>, <-4,-1, -26>, <-4,9,-26> stucco }
  90.     + object { polygon 4, < 4, 9,-6>, < 4,-1, -6>, < 4,-1, -26>, < 4,9,-26> stucco }
  91.     + object { polygon 4, <-5,0,-26>,<5,0,-26>,<5,0,0>,<-5,0,0> cement}
  92.     + object { polygon 4, <-5,8,-26>,<5,8,-26>,<5,8,0>,<-5,8,0> sandy}
  93.     + object { cylinder <-6,-1,-6>,<-6,9,-6>,2 dull_grey }
  94.    }
  95.  
  96. define hall
  97.    object {
  98.        wall {rotate <0,  0,0>}
  99.      + wall {rotate <0, 90,0>}
  100.      + wall {rotate <0,180,0>}
  101.      + wall {rotate <0,270,0>}
  102. }
  103.  
  104. // ceiling
  105. //object { 
  106. //   polygon 4, <-26,8,-26>,<-26,8,26>,<26,8,26>,<26,8,-26> 
  107. //   sandy 
  108. //   }
  109.  
  110.  
  111. define bright_white 
  112. texture { 
  113.    surface {
  114.       ambient 0.3
  115.       diffuse 0.7
  116.       color <2,2,2>
  117.    }
  118. }
  119.  
  120. define fixture
  121. object {
  122.    box <-2.5,7.8,-2.5>, <2.5, 8, 2.5>
  123.    bright_white
  124.    }
  125.  
  126. hall
  127.  
  128. fixture 
  129. fixture {translate < 25,0, 0>}
  130. fixture {translate <-25,0, 0>}
  131. fixture {translate <  0,0, 25>}
  132. fixture {translate <  0,0,-25>}
  133.  
  134. define dim 0.6
  135.  
  136. light white*dim,<0,7,0>
  137.  
  138. light white*dim,<24,7,0>
  139. light white*dim,<-24,7,0>
  140. light white*dim,<0,7,24>
  141. light white*dim,<0,7,-24>
  142.  
  143. define mirror1
  144.    object { 
  145.       polygon 4, <-5,-1,0>,<5,-1,0>,<5,9,0>,<-5,9,0> 
  146.       translate <0,0,-25>
  147.       reflector 
  148. }
  149.  
  150. mirror1 {rotate <0,  0,0>}
  151. mirror1 {rotate <0, 90,0>}
  152. mirror1 {rotate <0,180,0>}
  153. mirror1 {rotate <0,270,0>}
  154.